package com.Jin.controller;

public class Code {

    //成功状态码
    public static final Integer SAVE_OK = 20011;    //保存
    public static final Integer DELETE_OK = 20021;  //删除
    public static final Integer UPDATE_OK = 20031;  //修改
    public static final Integer SELECT_OK = 20041;  //查询

    public static final Integer EXIT_OK = 20061;    //退出
    public static final Integer PAGE_OK = 20071;    //分页

    //失败状态码
    public static final Integer SAVE_ERR = 20010;
    public static final Integer DELETE_ERR = 20020;
    public static final Integer UPDATE_ERR = 20030;
    public static final Integer SELECT_ERR = 20040;

    public static final Integer SELECT_EXISTENT = 20050;

    public static final Integer EXIT_ERR = 20060;
    public static final Integer PAGE_ERR = 20070;    //分页

    //异常状态码
    public static final Integer BUSINESS_ERR = 300250;
    public static final Integer SYSTEM_ERR = 400250;
    public static final Integer SYSTEM_TIMEOUT_ERR = 400260;
    public static final Integer SYSTEM_UNKNOWN_ERR = 499999;    //系统未知错误
    public static final Integer EXCEPTION_ERR = 999999;     //天大级错误，为止


    //sql异常
    public static final Integer SQL_REPEAT = 500250;    //sql重复错误
    public static final Integer SQL_ABNORMAL = 500260;      //不合法数据
    public static final Integer SQL_NULLPOINT = 500270;     //空数据错误
    public static final Integer SQL_ERR = 599999;       //未知错误

    //权限问题
    public static final Integer POWER_LOW = 600403; //权限不足

}
